package com.hwzn.module.business.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baidu.aip.ocr.AipOcr;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/5/21 16:36
 * @company hw
 **/
@Configuration
public class OcrConfig {

    @Value("${ocr.appId}")
    private String appId;

    @Value("${ocr.apiKey}")
    private String apiKey;

    @Value("${ocr.secretKey}")
    private String secretKey;

    @Bean
    public AipOcr aipOcr() {
        return new AipOcr(appId,apiKey,secretKey);
    }
}
